// 表单验证
export const validatePercent = (rule: any, value: any, callback: any) => {
  if (!value || (value+'').trim() === "") {
    return callback(new Error("请输入百分比"));
  }
  if (value < 0 || value > 100) {
    return callback(new Error("百分比必须在0到100之间"));
  }
  callback();
};
